<div class="row-fluid">
    <div class="table-header">
        Danh sách khách hàng
        <div class="pull-right">
            <a class="btn btn-small btn-success" href='<?php echo site_url("/custommer/create")?>'>Thêm <i class="icon-arrow-right icon-on-right bigger-110"></i></a>
        </div>
    </div>
    <table id="table_report" class="table table-striped table-bordered table-hover dataTable">
        <thead>
            <tr>
                <th>Hạng</th>
                <th>Tên</th>
                <th>Địa chỉ</th>
                <th>Liên hệ</th>
                <th>Phone</th>
            </tr>
        </thead>
        <tbody>
                  <?php foreach ($lstCustommer as $c) { ?>
                     <tr>
                        <td>
                           <img src='<?php echo base_url("/assets/images/cup/Cup-Gold.png") ?>' />
                        </td>
                        <td><?php echo $c->Name ?></td>
                        <td>
                              <?php echo $c->Address ?>   
                        </td>
                        <td>
                           <?php echo $c->Contact ?>                   
                        </td>                        
                        <td>
                           <?php echo $c->Phone1 ?>
                        </td>
                     </tr>
                  <?php } ?>

        </tbody>

    </table>
</div>

    <script src='<?php echo base_url("/content/js/jquery.dataTables.min.js") ?>'></script>
    <script src='<?php echo base_url("/content/js/jquery.dataTables.bootstrap.js") ?>'></script>

    <script>
        $(document).ready(function () {

            var oTable = $('#table_report').dataTable({
                "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
            });

            oTable.fnSort([[0, 'desc']]);

        });
    </script>
